<?php
/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-08 22:04
 */

namespace App\Controller\Task;

use App\Dao\Ocean\OceanUserRubbishDao;
use App\Middleware\AuthTokenMiddleware;
use Hyperf\HttpServer\Annotation\Middleware;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\PostApi;

/**
 * @Notes:【】
 * @User: zwc
 * @Date: 2022-05-08 22:04
 * @ApiController(prefix="task/message")
 * @Middleware(AuthTokenMiddleware::class)
 */
class MessageController extends BaseController
{
    /**
     * @Notes:【】
     * @User: zwc
     * @Date: 2022-05-08 22:05
     * @PostApi(path="text")
     */
    public function text()
    {
        $data = App(OceanUserRubbishDao::class)->with('User')->onlyTrashed()->inRandomOrder()->first();
        _SUCCESS($data);
    }
}